package com.oa.co.bo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


import java.util.Date;

/**
 * 导出Excel文件的实体类
 * @author DELL
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PerformanceBo {

    //id
    @ExcelIgnore
    private Integer id;
    //编号
    @ColumnWidth(value = 30)
    @ExcelProperty(value = "编号")
    private String number;
    //考核周期
    @ColumnWidth(value = 30)
    @ExcelProperty(value = "考核周期")
    private String cycle;
    //状态
    @ColumnWidth(value = 30)
    @ExcelProperty(value = "状态")
    private String state;
    /**
     *  创建时间
     */
    @ColumnWidth(value = 30)
    @DateTimeFormat("yyyy-MM-dd")
    @ExcelProperty(value = "创建时间")
    private Date createTime;
    //考核年度
    @ExcelProperty(value = "考核年度")
    private String annual;
    //考核季度
    @ExcelProperty(value = "考核季度")
    private String quarter;
}
